<?php
namespace app\constants;
/**
 * 响应码
 * Class ResponseCode
 * @package app\constants
 */
class ServiceStatus{
    const  SUCCESS=[
        "CODE"=>1,
        "MESSAGE"=>"请求成功"
    ];
    const  FAILED=[
        "CODE"=>0,
        "MESSAGE"=>"请求失败"
    ];
    const TOKEN_SIGNATURE_INVALID=[
        "CODE"=>1001,
        "MESSAGE"=>"token验证签名不正确"
    ];
    const TOKEN_BEFORE_VALID=[
        "CODE"=>1002,
        "MESSAGE"=>"token验证无效"
    ];
    const TOKEN_EXPIRED=[
        "CODE"=>1003,
        "MESSAGE"=>"token验证已过期"
    ];
    const TOKEN_EXCEPTION=[
        "CODE"=>1004,
        "MESSAGE"=>"token验证发生错误"
    ];
    const WX_PHONE_ERR=[
        "CODE"=>1005,
        "MESSAGE"=>"微信手机号获取失败"
    ];
    const SMS_VALIDATE_ERR=[
        "CODE"=>1006,
        "MESSAGE"=>"验证码验证失败"
    ];
    const SMS_VALIDATE_EXPIRE=[
        "CODE"=>1007,
        "MESSAGE"=>"验证码过期，请重新发送"
    ];
    const DECRYPT_FAILED=[
        "CODE"=>1101,
        "MESSAGE"=>"数据解密失败"
    ];
    const WX_LOGIN_SUCCESS=[
        "CODE"=>1200,
        "MESSAGE"=>"登录凭证校检成功"
    ];
    const WX_LOGIN_FAILED=[
        "CODE"=>1201,
        "MESSAGE"=>"登录凭证校检失败"
    ];
    const WX_LOGIN_EXCEPTION=[
        "CODE"=>1202,
        "MESSAGE"=>"登录凭证校检异常"
    ];
    const USER_NOT_FIND=[
        "CODE"=>1301,
        "MESSAGE"=>"用户数据不存在"
    ];
    const STUDENT_NOT_FIND=[
        "CODE"=>1302,
        "MESSAGE"=>"学员数据不存在"
    ];
    const LESSON_NOT_FIND=[
        "CODE"=>1303,
        "MESSAGE"=>"课程数据和不存在"
    ];
    const LESSON_END=[
        "CODE"=>1304,
        "MESSAGE"=>"课程已结束或停课"
    ];
    const LESSON_RESERVE_CLOSE=[
        "CODE"=>1305,
        "MESSAGE"=>"预约通道已关闭"
    ];
    const NOT_CURRENT_STUDENT=[
        "CODE"=>1306,
        "MESSAGE"=>"此学员为非在籍学员"
    ];
    const LESSON_STUDENT_EXIST=[
        "CODE"=>1307,
        "MESSAGE"=>"学员已加入该课程"
    ];
    const LESSON_SURPLUS_INSUFFICIEN=[
        "CODE"=>1308,
        "MESSAGE"=>"剩余课时次数不足"
    ];
    const LESSON_RESERVE_FAIL=[
        "CODE"=>1309,
        "MESSAGE"=>"预约课程失败"
    ];
    const LESSON_STUDENT_NULL=[
        "CODE"=>1308,
        "MESSAGE"=>"学员未加入该课程"
    ];
    const CANCEL_LESSON_RESERVE_FAIL=[
        "CODE"=>1309,
        "MESSAGE"=>"取消课程预约失败"
    ];
    const LESSON_RESERVE_NULL=[
        "CODE"=>1310,
        "MESSAGE"=>"没有预约数据"
    ];
    const ERROR_URL=[
        "CODE"=>9998,
        "MESSAGE"=>"url地址不正确"
    ];
    const EXCEPTION=[
        "CODE"=>9999,
        "MESSAGE"=>"try发生异常"
    ];
}